﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Xml;
using System.Xml.XPath;
using Com.FastSearch.SharePoint.Interfaces;
using Com.FastSearch.SharePoint.WebControls.ESPSearchWebParts.UI;

namespace ESPWebPartsUnitTest.mock
{
    class ESPSearchResultMock : IESPSearchResult
    {
        private int docCount;
        private string timetosearch = "0.5";

        public int DocCount
        {
            get { return docCount; }
            set { docCount = value; }
        }

        public long MaxRank
        {
            get;
            set;
        }

        public string TimeToSearch
        {
            get { return timetosearch;}            
        }


        public List <IESPDocumentSummary> Items
        {
            get;
            set;
        }

        public string[] NavigatorNames
        {
            get;
            set;
        }

        public IESPNavigator[] Navigators
        {
            get;
            set;
        }

        public IXPathNavigable XmlResult
        {
            get;
            set;
        }

        public bool DebugMode
        {
            get;
            set;
        }

        public XmlDocument GetXmlPaging(int offset, int maxPrevPage, int maxNextPage)
        {
            throw new NotImplementedException();
        }

        public IESPNavigator GetNavigator(string navigatorName)
        {
            throw new NotImplementedException();
        }

        public IXPathNavigable GetXmlSearchStatistics(int offset, int hitsperpage)
        {
            throw new NotImplementedException();
        }

        public IXPathNavigable GetXmlDidYouMean(HttpRequest request, ESPSearchGroupEnum espSearchGroup, IESPSearchSettings settings)
        {
            throw new NotImplementedException();
        }

        public IXPathNavigable GetXmlDidYouMean()
        {
            throw new NotImplementedException();
        }

        public IXPathNavigable GetXmlFeaturedContent(
            HttpRequest request,
            ESPSearchGroupEnum espSearchGroup,
            IESPSearchSettings searchSettings)
        {
            throw new NotImplementedException();
        }
    }
}